package com.base.engine.graphics;

import com.base.engine.error.ColorException;
import com.base.engine.error.VertexException;

public class VertexData3fuv {

	private Vertex3fuv vertex ; 
	private Color4f color ; 
	
	public VertexData3fuv(Vertex3fuv vertex){
		setVertex(vertex);
		setColor(new Color4f(1.0f,1.0f,1.0f,1.0f));
	}
	public VertexData3fuv(Vertex3fuv vertex, Color3f color){
		setVertex(vertex); 
		setColor(Color4f.toColor4f(color));
	}
	public VertexData3fuv(Vertex3fuv vertex, Color4f color){
		setVertex(vertex);
		setColor(color);
	}

	
	public Vertex3fuv getVertex() {
		return vertex;
	}

	public void setVertex(Vertex3fuv vertex) {
		if(vertex == null) VertexException.NullPointerException();
		else this.vertex = vertex;
	}

	public Color4f getColor() {
		return color;
	}

	public void setColor(Color4f color) {
		if(color == null) ColorException.NullPointerException()	;
		else this.color = color;
	}
	
	
}
